<template>
  <h1>App</h1>
  <button @click="visible = true">显示</button>
  <Dialog v-model:visible="visible" />
</template>

<script lang="ts">
import { defineComponent } from "vue";
import Dialog from "./Dialog.vue";

export default defineComponent({
  name: "App",
  components: {
    Dialog,
  },
  data() {
    return {
      visible: false,
    };
  },
});
</script>
